package top.bug.blog.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import top.bug.blog.common.BasePO;

/**
 * @author <a href="https://github.com/jiusi66">九思.</a>
 * @email 10837907@qq.com
 * @from <a href="https://www.52bug.top">递归茶馆-www.52bug.top</a>
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_article")
@ApiModel("文章信息实体")
public class Article extends BasePO {
    @ApiModelProperty("文章标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("文章封面")
    @TableField("pic_url")
    private String picUrl;

    @ApiModelProperty("封面风格")
    @TableField("cover_style")
    private String coverStyle;

    @ApiModelProperty("文章摘要")
    @TableField("description")
    private String description;

    @ApiModelProperty("文章类型：公开/私密/加密")
    @TableField("type")
    private String type;

    @ApiModelProperty("访问密码（加密文章使用）")
    @TableField("password")
    private String password;

    @ApiModelProperty("状态-草稿/已发布")
    @TableField("status")
    private String status;

    @ApiModelProperty("分类id")
    @TableField("category_id")
    private String categoryId;

    @ApiModelProperty("排序值")
    @TableField("order_num")
    private Integer orderNum;

    @ApiModelProperty("浏览量")
    @TableField("views_num")
    private Long viewsNum;

    @ApiModelProperty("评论数")
    @TableField("comments_num")
    private Long commentsNum;

    @ApiModelProperty("点赞数")
    @TableField("like_num")
    private Long likeNum;

    @ApiModelProperty("是否推荐")
    @TableField("is_recommend")
    private Long isRecommend;
}